home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form frmHole
- BorderStyle = 1 'Fixed Single
- Caption = "Holes"
- ClientHeight = 4140
- ClientLeft = 45
- ClientTop = 330
- ClientWidth = 5460
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 276
- ScaleMode = 0 'User
- ScaleWidth = 364
- StartUpPosition = 1 'CenterOwner
- Begin VB.TextBox txtThread
- Height = 288
- Left = 1785
- TabIndex = 5
- Top = 3195
- Width = 612
- End
- Begin VB.ListBox List1
- Height = 1425
- ItemData = "frmHole.frx":0000
- Left = 105
- List = "frmHole.frx":0013
- TabIndex = 4
- Top = 510
- Width = 2310
- End
- Begin VB.CommandButton cmdCancel
- Caption = "Cancel"
- Height = 375
- Left = 2610
- TabIndex = 3
- Top = 3630
- Width = 1200
- End
- Begin VB.CommandButton cmdOK
- Caption = "OK"
- Height = 375
- Left = 4140
- TabIndex = 2
- Top = 3615
- Width = 1200
- End
- Begin VB.TextBox txtdd
- Height = 285
- Left = 1785
- TabIndex = 1
- Top = 2235
- Width = 615
- End
- Begin VB.TextBox txtLen
- Height = 285
- Left = 1785
- TabIndex = 0
- Top = 2715
- Width = 615
- End
- Begin VB.Image PicPreview
- BorderStyle = 1 'Fixed Single
- Height = 3300
- Left = 2610
- Stretch = -1 'True
- Top = 135
- Width = 2700
- End
- Begin VB.Label Label8
- Alignment = 1 'Right Justify
- Caption = "Diameter (d) :"
- Height = 255
- Left = 345
- TabIndex = 9
- Top = 2235
- Width = 1335
- End
- Begin VB.Label Label7
- Alignment = 1 'Right Justify
- Caption = "Lenght (L) :"
- Height = 255
- Left = 705
- TabIndex = 8
- Top = 2715
- Width = 975
- End
- Begin VB.Label Label6
- Alignment = 1 'Right Justify
- Caption = "Length of thread (Lt) :"
- Height = 255
- Left = 105
- TabIndex = 7
- Top = 3195
- Width = 1575
- End
- Begin VB.Label Label4
- Caption = "Hole Type :"
- Height = 255
- Left = 120
- TabIndex = 6
- Top = 120
- Width = 975
- End
- Attribute VB_Name = "frmHole"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- '/******************************************************************/
- '/* */
- '/* TurboCAD for Windows */
- '/* Copyright (c) 1993 - 2001 */
- '/* International Microcomputer Software, Inc. */
- '/* (IMSI) */
- '/* All rights reserved. */
- '/* */
- '/******************************************************************/
- ' Storage for read-only property indicating whether
- ' or not the dialog box was cancelled. Default is
- ' False. Note that the declaration is Private, so
- ' that the value cannot be set from the OLE client
- ' application. The client reads the value using the
- ' DialogCancelled property.
- Private blnDialogCanceled As Boolean
- ' Read-only property indicating cancellation of the
- ' dialog.
- Property Get DialogCanceled() As Boolean
- DialogCanceled = blnDialogCanceled
- End Property
- Private Sub cmdCancel_Click()
- ' Set the value of the read-only property that
- ' tells the caller the dialog was cancelled.
- blnDialogCanceled = True
- Me.Hide
- End Sub
- Private Sub cmdOK_Click()
- Me.Hide
- End Sub
- Private Sub Form_Load()
- Dim i%, iDef%
- For i = 0 To List1.ListCount - 1
- If List1.List(i) = TypeH Then iDef = i
- Next i
- List1.ListIndex = iDef
- If List1.Text = "Hole1" Then PicPreview.Picture = LoadResPicture(101, 0)
- If List1.Text = "Hole2" Then PicPreview.Picture = LoadResPicture(102, 0)
- If List1.Text = "Hole3" Then PicPreview.Picture = LoadResPicture(103, 0)
- If List1.Text = "Hole4" Then PicPreview.Picture = LoadResPicture(104, 0)
- If List1.Text = "Hole5" Then PicPreview.Picture = LoadResPicture(105, 0)
- End Sub
- Private Sub List1_Click()
- If List1.Text = "Hole1" Then PicPreview.Picture = LoadResPicture(101, 0)
- If List1.Text = "Hole2" Then PicPreview.Picture = LoadResPicture(102, 0)
- If List1.Text = "Hole3" Then PicPreview.Picture = LoadResPicture(103, 0)
- If List1.Text = "Hole4" Then PicPreview.Picture = LoadResPicture(104, 0)
- If List1.Text = "Hole5" Then PicPreview.Picture = LoadResPicture(105, 0)
- End Sub
-